//
//  ZBMobanFourTableviewCell.m
//  MoBan
//
//  Created by apple on 16/7/12.
//  Copyright © 2016年 apple. All rights reserved.
//

#import "ZBMobanFourTableviewCell.h"
@interface ZBMobanFourTableviewCell()
@property(nonatomic,strong)UIImageView *imageview;
@property(nonatomic,strong)UILabel *lable;
@property(nonatomic,strong)UIImageView *arrowImageview;
@end
@implementation ZBMobanFourTableviewCell
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self addUI];
    }
    return self;

}
-(void)addUI
{
    self.imageview = [[UIImageView alloc]init];
    self.imageview.image = [UIImage imageNamed:@"text.png"];
    [self.contentView addSubview:self.imageview];
    
    self.lable = [[UILabel alloc]init];
    self.lable.text = @"测试";
    [self.contentView addSubview:self.lable];
    
    self.arrowImageview = [[UIImageView alloc]init];
    self.arrowImageview.backgroundColor = [UIColor grayColor];
    [self.contentView addSubview:self.arrowImageview];
}
-(void)layoutSubviews
{
    [super layoutSubviews];
    self.imageview.frame = CGRectMake(10*Kscr, 5*Kscr,30*Kscr , 30*Kscr);
    
    self.lable.frame = CGRectMake(self.imageview.right+10*Kscr, 0, 200*Kscr, self.height);
    
    self.arrowImageview.frame = CGRectMake(self.width-30*Kscr, 10*Kscr, 13*Kscr, 20*Kscr);

}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
